import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    currentActiveIndex:''
  },
  mutations: {
    changeActiveIndex(state,data){
      console.log(data,9090909)
      state.currentActiveIndex = data
    }
  },
  actions: {
    xxx({commit,dispatch},data){
      
      commit('changeActiveIndex',otherdata)
      dispatch('yyy',anthoredatat)
    },
    yyy({commit,dispatch},data){
      console.log(data)
    }
  }
})
